package SeleniumTest.page;

import SeleniumTest.pages.pages.webdriver.WebDriverFactory;
import org.openqa.selenium.WebDriver;
import utils.PropertyLoad;

/**
 * Created with IntelliJ IDEA.
 * User: C13T
 * Date: 12.07.13
 * Time: 21:26
 * To change this template use File | Settings | File Templates.
 */
public class Browser {
    private static String browserName =  PropertyLoad.loadProperty("browser.name");
    private static WebDriver driver = WebDriverFactory.createDriver(browserName);

    public static WebDriver driver() {
        return driver;
    }
    public static void open(String url) {
        driver.get(url);
    }

    public static void quit() {
        driver.quit();
    }


}
